let div = document.createElement('div');
div.style.background = 'red';
div.style.width = '500px';
div.style.height = '300px';
document.body.appendChild(div);
